//
//  CubefettiAppDelegate.m
//  Cubefetti
//
//  Created by David Wagner on 22/06/2009.
//  Copyright Zygote Commando 2009. All rights reserved.
//

#import "CubefettiAppDelegate.h"
#import "EAGLView.h"

@implementation CubefettiAppDelegate

@synthesize window;
@synthesize glView;

- (void)applicationDidFinishLaunching:(UIApplication *)application {
    
	[glView startAnimation];
}


- (void)applicationWillResignActive:(UIApplication *)application {
	glView.slowAnimation = YES;
}


- (void)applicationDidBecomeActive:(UIApplication *)application {
	glView.slowAnimation = NO;
}


- (void)dealloc {
	[window release];
	[glView release];
	[super dealloc];
}

@end
